import service from '/@/utils/request';


export const usePosCostPageApi = (formData?: object) => {
    return service({
        url: `v0/pos/cost/page`,
        method: 'POST',
        data: formData
    });
}

export const usePosCostQueryApi = (code: string,) => {
    return service({
        url: `v0/pos/cost/query`,
        method: 'GET',
        params: { code: code },
    });
}
export const usePosMealCountApi = (formData?: object) => {
    return service({
        url: `v0/pos/cost/countMeal`,
        method: 'POST',
        data: formData
    });
}

export const usePosCountOrgApi = (formData?: object) => {
    return service({
        url: `v0/pos/cost/countOrg`,
        method: 'POST',
        data: formData
    });
}

export const usePosCountOrgExortApi = (formData?: object) => {
    return service({
        url: `v0/pos/cost/countOrgExport`,
        method: 'POST',
        data: formData
    });
}

export const usePosCountRoleApi = (formData?: object) => {
    return service({
        url: `v0/pos/cost/countRole`,
        method: 'POST',
        data: formData
    });
}

export const usePosCountRoleExportApi = (formData?: object) => {
    return service({
        url: `v0/pos/cost/countRoleExport`,
        method: 'POST',
        data: formData
    });
}
